<script src="<?php echo base_url() ?>public/js/prototype.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>public/js/effects.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>public/js/dragdrop.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>public/js/controls.js" type="text/javascript"></script>	
<script src="<?php echo base_url() ?>public/js/crmcommon.js" type="text/javascript"></script>			
<script type="text/javascript">
	new Ajax.Request('<?php echo site_url().'/'.$this->uri->segment(1).'/pg' ?>',
  	{
    	method:'post',
    	onSuccess: function(transport){
	      	window.opener.document.getElementById('m_content').innerHTML = transport.responseText;
	      	/*window.close();*/
    	},
    	onFailure: function(){ alert('Something went wrong...') }
  	});
  	
  	
</script>
